﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Landscape.Business.Common;

namespace Landscape.WebApp.Internal.Operations
{
    public partial class CorrectiveAction : BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            base.Page_Load(sender, e);
            this.PageTitle = "Action Tracking & Management";

            if (!IsPostBack)
            {
                if (Request.QueryString["r"] != null)
                {
                    var qry = Utils.Base64Decrypt(Request.QueryString["r"]);
                    string[] parts = qry.Split('|');
                    hfActionID.Value = parts[0];
                }

                if (Request.QueryString["AID"] != null)
                {
                    hfActionID.Value = Request.QueryString["AID"].Trim();
                }
            }
        }
    }
}